<?
	require_once('includeC.php');
	$rs = GetUser($_REQUEST['id']);
	if(!$rs)
	{
		// TODO: Redirect User
	}
	if($_REQUEST['sure']=='true')
	{
		DeleteUser($_REQUEST['id']);
		if($conn->error) echo $conn->error;
		else header('location: indexC.php');
		die(); // Not exactly necessary but if had extra code, it would prevent side effects
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delete Information</title>
</head>

<body>
	<form>
    	Are you sure you would like to delete <?=$rs['Name']?>?
        <br />
        <input type="hidden" name="id" value="<?=$rs['id']?>" />
        <input type="hidden" name="sure" value="true" />
        <input type="submit" value="Delete Course Name" />
    </form>
</body>
</html>